package com.bbva.kyfb.kyfbdto.firmas.sistemasHost;

/**
 * The Class FirmaFicheroInDto.
 */
public class FirmaFicheroInDto {

	/** The canal entr. */
	private int canalEntr;

	/** The refeexte entr. */
	private String refeexteEntr;

	/** The bancsb entr. */
	private int bancsbEntr;

	/** The timestamp entr. */
	private String timestampEntr;

	/** The cdnitr entr. */
	private String cdnitrEntr;

	/**
	 * Gets the canal entr.
	 *
	 * @return the canal entr
	 */
	public int getCanalEntr() {
		return canalEntr;
	}

	/**
	 * Sets the canal entr.
	 *
	 * @param canalEntr the new canal entr
	 */
	public void setCanalEntr(final int canalEntr) {
		this.canalEntr = canalEntr;
	}

	/**
	 * Gets the refeexte entr.
	 *
	 * @return the refeexte entr
	 */
	public String getRefeexteEntr() {
		return refeexteEntr;
	}

	/**
	 * Sets the refeexte entr.
	 *
	 * @param refeexteEntr the new refeexte entr
	 */
	public void setRefeexteEntr(final String refeexteEntr) {
		this.refeexteEntr = refeexteEntr;
	}

	/**
	 * Gets the bancsb entr.
	 *
	 * @return the bancsb entr
	 */
	public int getBancsbEntr() {
		return bancsbEntr;
	}

	/**
	 * Sets the bancsb entr.
	 *
	 * @param bancsbEntr the new bancsb entr
	 */
	public void setBancsbEntr(final int bancsbEntr) {
		this.bancsbEntr = bancsbEntr;
	}

	/**
	 * Gets the timestamp entr.
	 *
	 * @return the timestamp entr
	 */
	public String getTimestampEntr() {
		return timestampEntr;
	}

	/**
	 * Sets the timestamp entr.
	 *
	 * @param timestampEntr the new timestamp entr
	 */
	public void setTimestampEntr(final String timestampEntr) {
		this.timestampEntr = timestampEntr;
	}

	/**
	 * Gets the cdnitr entr.
	 *
	 * @return the cdnitr entr
	 */
	public String getCdnitrEntr() {
		return cdnitrEntr;
	}

	/**
	 * Sets the cdnitr entr.
	 *
	 * @param cdnitrEntr the new cdnitr entr
	 */
	public void setCdnitrEntr(final String cdnitrEntr) {
		this.cdnitrEntr = cdnitrEntr;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "FirmaFicheroInDto [canalEntr=" + canalEntr + ", refeexteEntr="
				+ refeexteEntr + ", bancsbEntr=" + bancsbEntr
				+ ", timestampEntr=" + timestampEntr + ", cdnitrEntr="
				+ cdnitrEntr + "]";
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + bancsbEntr;
		result = prime * result + canalEntr;
		result = prime * result
				+ (cdnitrEntr == null ? 0 : cdnitrEntr.hashCode());
		result = prime * result
				+ (refeexteEntr == null ? 0 : refeexteEntr.hashCode());
		result = prime * result
				+ (timestampEntr == null ? 0 : timestampEntr.hashCode());
		return result;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(final Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		final FirmaFicheroInDto other = (FirmaFicheroInDto) obj;
		if (bancsbEntr != other.bancsbEntr) {
			return false;
		}
		if (canalEntr != other.canalEntr) {
			return false;
		}
		if (cdnitrEntr == null) {
			if (other.cdnitrEntr != null) {
				return false;
			}
		} else if (!cdnitrEntr.equals(other.cdnitrEntr)) {
			return false;
		}
		if (refeexteEntr == null) {
			if (other.refeexteEntr != null) {
				return false;
			}
		} else if (!refeexteEntr.equals(other.refeexteEntr)) {
			return false;
		}
		if (timestampEntr == null) {
			if (other.timestampEntr != null) {
				return false;
			}
		} else if (!timestampEntr.equals(other.timestampEntr)) {
			return false;
		}
		return true;
	}

}
